|
![](/i/fill.gif) |
It may be too late now, but I have a question: can't you use spheres to join
cones? Here's a clip from an include I am writing:
// Last, Current, Next are vectors
// RLast, RCurrent, RNext are floats
union
{ cone { Last, RLast, Current, RCurrent }
cone { Current, RCurrent, Next, RNext }
intersection
{
sphere { Current, RCurrent }
union
{
intersection
{
plane { Next-Current, 0 translate Current }
plane { Current-Last, 0 translate Current inverse }
}
intersection
{
plane { Next-Current, 0 translate Current inverse}
plane { Last-Current, 0 translate Current inverse}
}
}
bounded_by { sphere { Current, RCurrent*1.00001 } }
}
}
The rather complex CSG is used to ensure that only the part of the sphere
joining the two cones is used, and the rest is clipped.
Hope this helps.
Peter
P.S. I am not very good in intersecting planes, so this code isn't very
clear. If you find a better way to do the above please post it here. 10x
Post a reply to this message
|
![](/i/fill.gif) |